import { useState } from "react";
import './app.less';

function App() {
  const [count, setcount] = useState<number>(0);

  const increace = () => {
    setcount(count+1);
  }
  const decreace = () => {
    setcount(count-1);
  }

  return (
    <div className="wrapper">
      点击次数： 
      <button onClick={increace} className="wrapper-btn">+</button>
      <span className="wrapper-span">{count}</span>
      <button onClick={decreace} className="wrapper-btn">-</button>
    </div>
  )
}

export default App;